//根据项目id和用户id获取日志
//项目id
let projectId = $('#projectId').val();

//点击按钮
function getRecord(adminInfo){
    $('#adminNickName').html(adminInfo.nickname);
    $.post("duty/getRecord",{adminId:adminInfo.id,projectId:projectId},function(res){
        let data = res.data;
        var html = '';
        if(data.length>0){
            for(let i=0;i<data.length;i++){
                html+='<li class="layui-timeline-item">';
                html+='<i class="layui-icon layui-timeline-axis"></i>';
                html+='<div class="layui-timeline-content layui-text">';
                html+='<h3 class="layui-timeline-title">'+data[i]["createtime_text"]+'</h3>';
                html+='<p>'+data[i]["remarks"]+'</p>';
                html+='</div>';
                html+='</li>';
            }
        }
        // console.log(html)
        $('#record-context').html(html);
    });
}
